<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>

    * {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    div {
      width: 1000px;
      height: 300px;
      border: 2px solid #000;
      margin: 100px auto;
      overflow: hidden;
    }

    ul {
      width: 1100px;
    }

    li {
      width: 100px;
      height: 300px;
      float: left;
    }

  </style>
</head>
<body>

<div id="box">

  <ul>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
  </ul>

</div>

<script src="jquery-1.12.4.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.accordion.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(function(){
		var colors = ["red","yellow","green","cyan","pink","hotpink","blue","yellowgreen","greenyellow","skyblue"];
		$("#box").accordion(colors,20);
	});
</script>
</body>
</html>